﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="ViewUserInvoice.aspx.cs" Inherits="ViewUserInvoice" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="Menu" Runat="Server">
    <asp:Panel runat="server" ID="AuthenticatedMenuPanel">
          <asp:Menu ID="Menu1" runat="server" StaticDisplayLevels="3" BackColor="White" DynamicHoverStyle-BorderStyle="NotSet" Width="200px">
              <Items>
                
                <asp:MenuItem Text="Home" Value="Home" navigateurl="Default.aspx">
                  <asp:MenuItem Text="New Document" Value="New Document" navigateurl="AddDocument.aspx">                   
                   </asp:MenuItem>
                </asp:MenuItem>

                <asp:MenuItem Text="Users" Value="My_Users" navigateurl="MyUsers.aspx">
                  <asp:MenuItem Text="New User" Value="New_User" navigateurl="AddUser.aspx">
                   </asp:MenuItem>
                </asp:MenuItem>
               
                <asp:MenuItem Text="Companies" Value="Companies" navigateurl="MyCompanies.aspx">
                  <asp:MenuItem Text="New Company" Value="New_Company" navigateurl="AddCompany.aspx">
                   </asp:MenuItem>
                </asp:MenuItem>
                
                <asp:MenuItem Text="Clients" Value="Clients" navigateurl="MyClients.aspx">
                  <asp:MenuItem Text="New Client" Value="New_Client" navigateurl="AddClient.aspx">
                   </asp:MenuItem>
                </asp:MenuItem>

              </Items>
          </asp:Menu>
     </asp:Panel>
</asp:Content>
        
<asp:Content ID="Contentt3" runat="server" contentplaceholderid="MainContent">
    <asp:Panel runat="server" ID="AuthenticatedMessagePanel">
        <asp:Label ID="Label3" runat="server" Text="Number:" Font-Size="12px" Font-Names="inherit" ForeColor="#7F7F7F"></asp:Label>
        <br />
        <asp:Label ID="lbldoc_num" runat="server" Text=" "></asp:Label>
        <asp:Label ID="lbldocument_id" runat="server" Text=" " Visible="false"></asp:Label>
        <br />
        <asp:Label ID="Label4" runat="server" Text="Date:" Font-Size="12px" Font-Names="inherit" ForeColor="#7F7F7F"></asp:Label>
        <br />
        <asp:Label ID="lbldoc_date" runat="server" Text=" "></asp:Label>
        <br />
        <asp:Label ID="Label5" runat="server" Text="Payment date:" Font-Size="12px" Font-Names="inherit" ForeColor="#7F7F7F"></asp:Label>
        <br />
        <asp:Label ID="lblpay_date" runat="server" Text=" "></asp:Label>
        <br />
        <asp:Label ID="Label6" runat="server" Text="Company by:" Font-Size="12px" Font-Names="inherit" ForeColor="#7F7F7F"></asp:Label>
        <br />
        <asp:Label ID="lblcompany_by" runat="server" Text=" "></asp:Label>
        <br />
        <asp:Label ID="Label7" runat="server" Text="Company to:" Font-Size="12px" Font-Names="inherit" ForeColor="#7F7F7F"></asp:Label>
        <br />
        <asp:Label ID="lblcompany_to" runat="server" Text=" "></asp:Label>
        <br />
        <asp:Label ID="Label2" runat="server" Text="Document:" Font-Size="12px" Font-Names="inherit" ForeColor="#7F7F7F"></asp:Label>
        <br />
        <asp:Label ID="lbldoc_path" runat="server" Text=" "></asp:Label>
        <br />
        <asp:Label ID="Label10" runat="server" Text="Document type:" Font-Size="12px" Font-Names="inherit" ForeColor="#7F7F7F"></asp:Label>
        <br />
        <asp:Label ID="lbldoc_type" runat="server" Text=" "></asp:Label>
        <br />
        <asp:Label ID="Label12" runat="server" Text="Payment type:" Font-Size="12px" Font-Names="inherit" ForeColor="#7F7F7F"></asp:Label>
        <br />
        <asp:Label ID="lblpay_type" runat="server" Text=" "></asp:Label>
        <br />
        <br />
        <asp:Label ID="Label1" runat="server" Text="Articles"></asp:Label>
        <br />
        <asp:Label ID="lbl_art_message" runat="server" Font-Bold="True" 
            Font-Overline="False" Font-Underline="True" 
            Text="This document have no articles!" Visible="False"></asp:Label>
        <br />        
        <asp:ListView ID="article_list" runat="server">
             <LayoutTemplate>
                <table class="List">
                      <thead>
                          <tr>
                            <th> Name</th>
                            <th> Count</th>
                            <th> Price</th>
                            <th> Sum</th>
                          </tr>
                       </thead>                          
                      <tr ID="itemPlaceholder" runat="server"></tr>                       
                       <tfoot>
                        <tr>
                            <th style="text-align:right" colspan="4">
                            </th>
                        </tr>
                       </tfoot>
                </table>
            </LayoutTemplate>
            <AlternatingItemTemplate>
                <tr class="odd">
                    <td>
                        <asp:Label ID="nameLabel" runat="server" Text='<%# Eval("_article_name") %>' />
                    </td>
                    <td>
                        <asp:Label ID="countLabel" runat="server" Text='<%# Eval("_article_count") %>' />
                    </td>
                    <td>
                        <asp:Label ID="priceLabel" runat="server" Text='<%# Eval("_article_price") %>' />
                    </td>
                    <td>
                        <asp:Label ID="sumLabel" runat="server" Text='<%# Eval("_article_sum") %>' />
                    </td>
                </tr>
            </AlternatingItemTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <asp:Label ID="nameLabel" runat="server" Text='<%# Eval("_article_name") %>' />
                    </td>
                    <td>
                        <asp:Label ID="countLabel" runat="server" Text='<%# Eval("_article_count") %>' />
                    </td>
                    <td>
                        <asp:Label ID="priceLabel" runat="server" Text='<%# Eval("_article_price") %>' />
                    </td>
                    <td>
                        <asp:Label ID="sumLabel" runat="server" Text='<%# Eval("_article_sum") %>' />
                    </td>
                </tr>
            </ItemTemplate>
        </asp:ListView>
    </asp:Panel>
    <asp:Panel runat="Server" ID="AnonymousMessagePanel">
    </asp:Panel>
</asp:Content>